import request from "@/manager/base/RequestManager";


/**
 * 获取菜单路由
 *
 * @return BaseResponse<JSONArray>
 * @author xsc
 */
export function getSystemMenuRoute() {
    return request.get('/system/menu/getSystemAuthMenuRoute')
}

// 菜单列表
export function getSystemAuthMenuList(params?: Record<string, any>) {
    return request.get('/system/menu/getSystemAuthMenuList', params)
}

// 添加菜单
export function optSystemAuthMenuAdd(params: Record<string, any>) {
    return request.post('/system/menu/optSystemAuthMenuAdd', params)
}


// 编辑菜单
export function optSystemAuthMenuEdit(params: Record<string, any>) {
    return request.post('/system/menu/optSystemAuthMenuEdit', params)
}


// 菜单详情
export function getSystemAuthMenuDetail(params: Record<string, any>) {
    return request.post('/system/menu/getSystemAuthMenuDetail', params)
}


// 菜单删除
export function menuDelete(params: Record<string, any>) {
    return request.post('/system/menu/del', params)
}


// 权限菜单详情
export function getSystemAuthMenuPrem() {
    return request.post('/system/menu/getSystemAuthMenuPrem')
}